package edu.java.texbooks.scjp.test01;

public class MyClass {
    private int a = 6;
    private int b = 3;
    final int c;

    // final int c=5;

    // intialization of final instance variable in init block is correct
//     {
//     c=3;
//     }

    public MyClass(int a, int b) {
	super();
	this.a = a;
	this.b = b;
	// if the final instance variable is not initialized until the end of
	// the contructor it will not compile
	 c=10;
    }

    public int getC() {
	return c;
    }

    public int getA() {
	return a;
    }

    public void setA(int a) {
	this.a = a;
    }

    public int getB() {
	return b;
    }

    public void setB(int b) {
	this.b = b;
    }

    // nonsence --> this code can't be used
    // public void initializeCInstanceVariable(){
    // c=10;
    // }

}
